﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GpsTagger.Logic
{
    class ImageInfo
    {
        private MapPoint mp;

        public MapPoint Mp
        {
            get { return mp; }
            set { mp = value; }
        }
        private string fileName;

        public string FileName
        {
            get { return fileName; }
            set { fileName = value; }
        }

        public ImageInfo(string fname, string loc)
        {
            fileName = fname;
            mp = new MapPoint();
            mp.Name = loc;
        }

        public void Tag(MapPoint newMapPoint)
        {
            mp.Name = newMapPoint.Name;
            mp.LongitudeDegrees = newMapPoint.LongitudeDegrees;
            mp.LongitudeMinutes = newMapPoint.LongitudeMinutes;
            mp.LongitudeSeconds = newMapPoint.LongitudeSeconds;
            mp.LatitudeDegrees = newMapPoint.LatitudeDegrees;
            mp.LatitudeMinutes = newMapPoint.LatitudeMinutes;
            mp.LatitudeSeconds = newMapPoint.LatitudeSeconds;
        }

        public override string ToString()
        {
            return fileName + " -> " + mp.Name;
        }
    }
}
